package com.glodon.paas.activity.dao;

import java.util.List;

import com.glodon.paas.activity.dao.domain.ActivityEntity;

public interface ActivityDao {

    String insertSelective(ActivityEntity record);

    int deleteByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ActivityEntity record);

    ActivityEntity selectByPrimaryKey(String id);

    /**
     * @param userId
     * @param appId
     * @param moduleId
     * @param activityType
     * @param itemId
     * @param itemType
     * @param subItemId
     * @param actorId
     * @param nearerTime
     * @param olderTime
     * @param count
     * @return
     */
    List<ActivityEntity> select(
                         String receiverId,
                         Integer appId,
                         Integer moduleId,
                         Long activityType,
                         String itemId,
                         String itemType,
                         String subItemId,
                         String actorId,
                         long nearerTime,
                         long olderTime,
                         int count
                         );
}
